package com.ane.util;

import java.io.Serializable;

/**
 * <p>功能描述：返回JSON数据对象</p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company: </p>
 *
 * @author lizq
 * @version 2016/12/23
 */
public class ResponseBean implements Serializable {
	
	private static final long serialVersionUID = 6049041519552360876L;
	private ResultStatus status;//状态
	private String msg;//消息
	private Object result;//返回对象
	//分页使用
	private long results;//总记录数
	private int pageSize;//每页显示
	private Object rows;
	
	public ResponseBean() {
		
	}
	
	public ResponseBean(ResultStatus status, String msg, Object obj) {
		super();
		this.status = status;
		this.msg = msg;
		this.result = obj;
	}
	public ResponseBean(ResultStatus status, String msg,long results,int pageSize,Object rows) {
		super();
		this.status = status;
		this.msg = msg;
		this.results = results;
		this.pageSize = pageSize;
		this.rows = rows;
	}
	
	public ResponseBean(ResultStatus status, String msg) {
		this.status = status;
		this.msg = msg;
	}
	
	public ResultStatus getStatus() {
		return status;
	}
	
	public void setStatus(ResultStatus status) {
		this.status = status;
	}
	
	public String getMsg() {
		return msg;
	}
	
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	public Object getResult() {
		return result;
	}
	
	public void setResult(Object result) {
		this.result = result;
	}
	
	public long getResults() {
		return results;
	}
	
	public void setResults(long results) {
		this.results = results;
	}
	public int getPageSize() {
		return pageSize;
	}
	
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	
	public Object getRows() {
		return rows;
	}
	
	public void setRows(Object rows) {
		this.rows = rows;
	}
	
}